package com.xbongbong.admin.model.impl;

import com.xbongbong.admin.domain.dao.PaasPrintTemplateRetainDao;
import com.xbongbong.admin.domain.entity.PaasPrintTemplateRetainEntity;
import com.xbongbong.admin.model.PaasPrintTemplateRetainModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title: paasPrintTemplateRetain实现类
 * @date 2020/3/1910:53
 */
@Service("paasPrintTemplateRetainModel")
public class PaasPrintTemplateRetainModelImpl implements PaasPrintTemplateRetainModel {
    @Resource
    private PaasPrintTemplateRetainDao paasPrintTemplateRetainDao;
    @Override
    public List<PaasPrintTemplateRetainEntity> list(Map<String, Object> params) {
         return paasPrintTemplateRetainDao.findEntitys(params);
    }

    @Override
    public void insertBatch(List<PaasPrintTemplateRetainEntity> paasPrintTemplateRetainEntities) {
        paasPrintTemplateRetainDao.insertBatch(paasPrintTemplateRetainEntities);
    }

    @Override
    public Integer deleteBatch(List<Long> printIds, String corpid) {
        return paasPrintTemplateRetainDao.deleteBatch(printIds,corpid);
    }

}
